#!/bin/sh

clear
echo =========================================
echo -------- Stop CM web server ------
echo =========================================

APPLICATION_NAME=zxpisweb

for i in `ps -ef | grep startweb.sh | grep -v "grep" | awk '{print $2}'`
do
	kill -9 $i
	echo "kill startweb.sh OK! PID=$i" 
done

for i in `ps -ef | grep /opt/$APPLICATION_NAME/ | grep -v "grep" | awk '{print $2}'`
do
	kill -9 $i
	echo "kill java OK! PID=$i" 
done

echo "OK: $APPLICATION_NAME stoped!"
